/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "Creator.h"
#include <Gluck.h>

namespace liba
{
namespace noise
{
namespace hard
{
namespace marmalade
{

static Hardware * hardware = 0;

Creator::Creator()
{
	if( hardware )
		THROW(Gluck(__FUNCTION__, "hardware already exists"));
	hardware = new Hardware();
}

Creator::~Creator()
{
	delete hardware; hardware = 0;
}

} // namespace marmalade
} // namespace hard
} // namespace noise
} // namesapce liba

